public class MyDate {

        public int year;
        public int day;
        public int month;
        public void setDate(int year,int month,int day){
            this.year = year;
            this.month = month;
            this.day = day;
        }
        public MyDate(){
            this(25,25,25);
            System.out.println("无参数");
        }
        public MyDate(int year,int month,int day){
            this.year = year;
            this.month = month;
            this.day = day;
            System.out.println("三个参数");
        }

        @Override
        public String toString() {
            return "MyDate{" +
                    "year=" + year +
                    ", day=" + day +
                    ", month=" + month +
                    '}';
        }

}
